package com.cy.dda.model.ao.user;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;

import com.cy.dda.comm.constant.RegexContants;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 用户重置密码
 *
 * @author: tanyilin
 * @create: 2018年10月31日 下午5:43:15
 */
@Data
@ApiModel("用户重置密码")
public class UserResetPasswordAO {

	@ApiModelProperty(value = "手机号码", required = true)
	@NotEmpty(message = "手机号码不可为空")
	@Pattern(regexp = RegexContants.MOBILE, message = "手机号码格式不正确")
	private String mobile;
	
	@ApiModelProperty(value = "短信验证码", required = true)
	@NotEmpty(message = "短信验证码不可为空")
	private String smsCode;
	
	@ApiModelProperty(value = "新密码", required = true)
	@NotEmpty(message = "新密码不可为空")
	private String newPassword;
}
